﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace OrderWebApplication.Models {
    public class Commodity {
        private int commodityId;
        private string name;
        private double unitPrice;

        public int CommodityId { get => commodityId; set => commodityId = value; }
        public string Name { get => name; set => name = value; }
        public double UnitPrice { get => unitPrice; set => unitPrice = value; }

        public Commodity() { }
        public Commodity(string name, double unitPrice) {
            this.Name = name;
            this.UnitPrice = unitPrice;
        }
    }
}
